package com.xqt.inters.service.sys;

import com.xqt.base.entity.Operator;
import com.xqt.entity.sys.SysMember;
import com.xqt.inters.service.base.IBaseService;


import java.util.List;

/**
 * Created by Administrator on 2017/3/17.
 */
public interface ISysMemberService extends IBaseService<SysMember>{

    /**
     * 根据用户名获取用户信息
     *
     * @param name
     * @return
     * @throws Exception
     */
    public SysMember queryByName(Object name);


    /**
     * 根据手机号获取用户信息
     *
     * @param name
     * @return
     * @throws Exception
     */
    public SysMember queryByMobile(Object mobile);

    /**
     * 根据角色Id获取用户信息
     *
     * @param name
     * @return
     * @throws Exception
     */
    public List<SysMember> selectByRoleId(Object roleId);

    /**
     * 根据管理id获得用户信息
     *
     * @param name
     * @return
     * @throws Exception
     */
    public SysMember queryByItemId(SysMember sysMember);

    /**
     * 保存或者更新账户信息
     *
     * @param name
     * @return
     * @throws Exception
     */
    public void addOrUpdate(SysMember member, String checkedRole,Operator operator) throws Exception;

    /**
     * 用户注册
     *
     * @param member
     * @throws Exception
     */
    public void regist(SysMember sysMember) throws Exception;

}
